const Router = require('@koa/router')
const { server } = require('../env')
const auth = require('../middleware/auth')
const { verifyRecharge } = require('../middleware/recharge.middleware')
const rechargeController = require('../controller/recharge.controller')

const rechargeRouter = new Router({ prefix: `${server.pathPrefix}/recharge` })

rechargeRouter.post('/', auth, verifyRecharge, rechargeController.recharge)// 充值

module.exports = rechargeRouter